Ext.define('EUF.view.newStudent', {
	extend : 'Ext.form.Panel',
    alias :'widget.newStudentview',
	id:'newStudentview',
	width : '100%',
    layout: {
        type: 'auto'
    },

    initComponent: function() {
        var me = this;
 var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
        clicksToMoveEditor: 1,
        autoCancel: false
    });
        Ext.applyIf(me, {
            items: [
                {
                    xtype: 'toolbar',
                    height: 50,
                    items: [
                        {
							xtype: 'label',
							text: 'Student Information System',
							id: 'sis',
							cls: 'button-link',
							style: '{font-size:22px;color:white;font-weight:bold}'
						},
                        {
                            xtype: 'tbfill'
                        },
                        {
                        	xtype: 'container',
                        	flex: .23,
                        	layout: {
                                //type: 'hbox',
                                align: 'right'
                            },
                        	/*height: '100%',
                        	width: '100%',*/
                        	//align: 'stretch',
                        	items:[
									{
									    xtype: 'label',
									    id: 'welcomeLbl',
									    margin: '0 10 0 0',
										//text: 'Welcome ',
										style: '{font-size:16px;color:#339966;font-weight:bold}'
										//style : 'font-size:24px' //,font-weight:bold'
									},
									{
										xtype: 'button',
										text: 'Logout',
										id: 'logout',
										cls: 'button-link',
										style: '{font-size:12px;color:white;font-weight:bold}',
										handler : function() {
											
								       //    Ext.getCmp('viewPort1').removeAll();
								         //  var view = Ext.widget('login');
								         //  Ext.getCmp('viewPort1').add(view);
//								           Ext.getCmp('welcomeLbl').setText('Welcome '+user);
								           
								       //     Ext.getCmp('login-tabbar').hide();
								         //   Ext.getCmp('login-tabbar').removeAll();
											
										}
									    //xtype: 'image',
									    //height: 48,
									    //padding: 10,
									    //width: 48,
									    //src: 'images/cross.png'
									}
                        	       ]
                        }
                        
                    ]
                },
                {
                    xtype: 'panel',
                    height: '100%',
                    width: '100%',
                    id: 'cPanel',
                    deferredRender : true,
                    //autoScroll: true,
                    activeItem: 0,                    
                    layout: {
                        type: 'card'
                    },
                    items: [
                        {
                            xtype: 'studentDetailsView',
                            title: 'New Student'
                        },
                        {
                            xtype: 'headWiseDetails',
                            activeItem: 0,
                            title: 'Fee Statement Head Wise'
                        },
                        {
                            xtype: 'feeStatement',
                            activeItem: 0,
                            title: 'Fee Statement'
                        },
                        {
                            xtype: 'duplicateSlip',
                            activeItem: 0,
                            title: 'Duplicate Slip'
                        },
                        {
                            xtype: 'studentForm',
                            id: 'studentForm',
                            activeItem: 0,
                            title: 'New Student- Student Infomation'
                        },
                        {
                            xtype: 'feeDetailsForm',
                            activeItem: 0,
                            title: 'Fee Details'
                        },
                        {
                            xtype: 'ClassMasterView',
                            activeItem: 0,
                            title: 'Class Master Data',
                            layout  : {
                            	
                            	type : 'vbox'
                            },
                            width: '50%',
                            height: '40%'
                        },
                        {
                            xtype: 'piechartreport',
                            activeItem: 0,
                            title: 'Reporting',
                            layout  : {
                            	
                            	type : 'vbox'
                            },
                             width: 900,
							height: 550
     
                        }
                    ]
                }			
				
            ]
        ,
            fbar: [{
            	xtype: 'eyeView',
                //margin: '10 0 0 0',
                //title: 'WF Designer',
				//align : 'center',
				height: 73,
				width: '100%',
				/*xtype: 'container',
				style : {						
					"background-color": 'F5F5F5'  
				},
				dock: 'bottom',
				ui: 'footer',
				align : 'center',
				items:[{
					xtype: 'eyeView',
					height: 90,
					width: '100%',
				}],
				height: 73,
				width: '100%',*/
			}],
        });

        me.callParent(arguments);
    }
});




var stColumnsList = new Array();

	  stColumnsList[0] = {
	header : 'Name',
	dataIndex : 'studentName',
	                
	 flex: 1
};
 
stColumnsList[1] = {
	header : 'Batch',
	dataIndex : 'batch',
	
               
	 flex: 1
}; 
 stColumnsList[2] = {
	header : 'Admission No',
	dataIndex : 'admNo',
	
               
	 flex: 1
}; 
	
	stColumnsList[3] = {
	header : 'Class',
	dataIndex : 'className',
	field : 'textfield',
	flex: 1 
	};
			

stColumnsList[4] = {
	header : 'Roll Number',
	dataIndex : 'rollNo',
	field : 'textfield',
	flex: 1 
	};
			
